package com.humanminoritygame.model;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public class HibernateGenericRepo {

  private SessionFactory sessionFactory;

  public void setSessionFactory(SessionFactory s){
    this.sessionFactory = s;
  }

  public SessionFactory getSessionFactory(){
    return this.sessionFactory;
  }

  public Session getSession(){
    return sessionFactory.getCurrentSession();
  }
}
